﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace ConfigurationManagement.MsBuild.Tests.TaskTests
{    
    [TestClass]
    public class ExportDictionaryTests : BaseTaskTest
    {
        /// <summary>
        /// Tests the task execution
        /// </summary>
        [TestMethod]
        public void ExecuteTest()
        {
            var path = "ExportDictionaryTests.ExecuteTest.html";
            var task = new ExportDictionary();
            task.BuildEngine = _buildEngine.Object;
            task.HostObject = _taskHost.Object;
            task.ProjectName = "Project1";
            task.SolutionName = "Solution1";                       
            task.OutputPath = path;            
            task.DictionaryConnectionString = Config.ConnectionString;
            task.Execute();

            Assert.IsTrue(File.Exists(path));
        }


    }
}
